﻿@using Microsoft.AspNetCore.Mvc.Localization;
@inject IViewLocalizer Localizer
@{
    ViewData["Title"] = "角色管理";
}

<form class="layui-form layui-form-pane">
    @Html.AntiForgeryToken()
    @Html.Hidden("Id")
    @Html.Hidden("MenuIdsInit", ViewData["MenuIds"])
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">@Localizer["RoleName"]</label>
        <div class="layui-input-block">
            <input type="text" name="RoleName" class="layui-input RoleName" lay-verify="required" placeholder="@Localizer["RoleNamePlaceholder"]">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12" pane>
        <label class="layui-form-label">@Localizer["SystemDefault"]</label>
        <div class="layui-input-block">
            <input type="radio" class="IsSystem" name="IsSystem" value="1" title="@Localizer["No"]">
            <input type="radio" class="IsSystem" name="IsSystem" value="0" title="@Localizer["Yes"]">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">@Localizer["Permission"]</label>
        <div class="layui-input-block">
            <div id="Gerald-auth-tree"></div>
        </div>
    </div>
    <div class="layui-form-item layui-form-text layui-col-xs12">
        <label class="layui-form-label">@Localizer["Remark"]</label>
        <div class="layui-input-block">
            <textarea placeholder="@Localizer["RemarkPlaceholder"]" name="Remark" class="layui-textarea Remark"></textarea>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="addRole">@Localizer["Submit"]</button>
            <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">@Localizer["Reset"]</button>
        </div>
    </div>
</form>
@section Scripts{
    <script type="text/javascript" src="~/layui/layui.js"></script>
    <script type="text/javascript" src="~/js/role/roleAdd.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
}



